package cn.catsdad;

import cn.catsdad.base.repository.impl.BaseRepositoryImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author xuyl
 * @version V1.0.0 2024/7/6
 * @since V100R001
 */
@EnableAspectJAutoProxy
@SpringBootApplication
@EntityScan(basePackages = {"cn.catsdad.dto"})
@EnableJpaRepositories(basePackages = {"cn.catsdad.base.repository","cn.catsdad.repository"},
        repositoryBaseClass = BaseRepositoryImpl.class)
@EnableTransactionManagement
@EnableJpaAuditing
@EnableDiscoveryClient
@EnableFeignClients
public class Application {

    public static void main(String[] args) {
        SpringApplication.run(Application.class,args);
    }

}
